<?php
/**
 * 单点入口
 * 
 */

define('APP_PATH', dirname(dirname(__FILE__)));
define('V_DEBUG', true);

try {
    require_once dirname(APP_PATH) . '/framework/V.php';
    V::loadBootstrap('cli', 'main')->run();
} catch (Exception $e) {
    echo defined('V_DEBUG') && V_DEBUG ? $e->getMessage() : 'Error';
}

$method = 'note.getNoteList';
$param = array(
    'page' => 1,
    'pageSize' => 10,
);
try {
    $info = DemoAPIClient::call($method, $param);
    print_r($info);
} catch (Exception $ex) {
    echo 'Error: ', $ex->getMessage(), PHP_EOL;
}
